<template>
    <k-view class="risk-empty">
        <k-image :src="riskEmptyImg" class="risk-empty-img" v-if="theme === 'light'"></k-image>
        <k-image :src="riskEmptyBlackImg" class="risk-empty-img" v-else></k-image>
        <k-text class="text">{{ text }}</k-text>
    </k-view>
</template>

<script setup lang="ts">
import riskEmptyImg from '../../assets/stock/risk_empty.png';
import riskEmptyBlackImg from '../../assets/stock/risk_empty_black.png';
import getThemeHooks from '@/hooks/getThemeHooks';
interface Props {
    text?: string;
}
withDefaults(defineProps<Props>(), {
    text: '本系统中暂无明显异常风险项目'
});
const { theme, getTheme } = getThemeHooks();
getTheme();
</script>

<style scoped lang="less">
.risk-empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    &-img {
        width: 400px;
        height: 300px;
        margin-top: 96px;
        margin-bottom: 24px;
    }

    .text {
        font-family: PingFangSC-Regular;
        font-size: 32px;
        color: rgba(0, 0, 0, 0.60);
        letter-spacing: 0;
        font-weight: 400;
        margin-bottom: 200px;
    }
}

[theme-mode="black"] {
    .risk-empty {
        .text {
            color: rgba(255, 255, 255, 0.6);
        }
    }
}
</style>
